<template>
    <div>
       <span>我是另一个组件 - navbar</span>
       <button @click="checkShow">左边</button>
       {{myName}}
       <button v-show="true">右边边</button>
    </div>
</template>

<script>
export default {
    props: {
        myName:{
            type:String,
            default:''
        },
        myShow:{
            type:Boolean,
            default:false
        }
    },
    methods: {
        checkShow(){
            this.$emit('events')
        }
    }
}
</script>

<style>

</style>
